package com.bdqn.repository;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.pojo.Role;
import com.bdqn.pojo.User;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface RoleRepository extends JpaRepository<Role,Long> {
     Page<Role> findRolesByRoleNameLike(String roleName, Pageable pageable);

     Role findRoleByUsers(User user);
}
